import { getData, postData, path } from "./../http";

export let getDataUserList = () => {
    return getData("/admin/user/getUserList");
}

// 创建用户
export let createUser = (params) => {
    return postData("/admin/user/createUser", params);
}
// 修改用户
export let updateUser = (id, params) => {
    return path('/admin/user/update/' + id, params)
}
// 删除用户
export let deleteUser = (id) => {
    return path('/admin/user/delete/' + id)
}